package com.flyco.modules.sms.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 菜谱排期表
 * @Author: flyco
 * @Date:   2022-06-09
 * @Version: V1.0
 */
@Data
@TableName("sms_dining_date_arrange")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sms_dining_date_arrange对象", description="菜谱排期表")
public class SmsDiningDateArrange {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**菜谱id*/
	@Excel(name = "菜谱id", width = 15)
    @ApiModelProperty(value = "菜谱id")
	@Dict(dictTable ="sms_dining_menu",dicText = "name",dicCode = "id")
	private Long diningMenuId;
	/**该菜品的用餐日期*/
	@Excel(name = "该菜品的用餐日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "该菜品的用餐日期")
	private Date diningDate;
	/**1早餐，3午餐，5晚餐，0午餐或晚餐*/
	@Excel(name = "1早餐，3午餐，5晚餐，0午餐或晚餐", width = 15)
    @ApiModelProperty(value = "1早餐，3午餐，5晚餐，0午餐或晚餐")
	@Dict(dicCode = "yn")
	private Integer diningType;
	/**0有效，1删除*/
	@Excel(name = "0有效，1删除", width = 15)
    @ApiModelProperty(value = "0有效，1删除")
	@TableLogic
	private Integer cancelFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
